<?php

require_once 'func.inc.php';
require_once 'simple_html_dom.php';

$yearvar='3333 ';

$sitelist=file('sitelist.txt');

foreach($sitelist as $site){
	$site=trim($site);
	$sitearray=explode("\t",$site);
	$site_url=$sitearray[0];
	$cid=$sitearray[1];
	$charset=$sitearray[2];
	(0==$cid) && $cid=1;
	
	include $charset.'.inc.php';

	$fh=fopen('sitecookielist.txt','a'); 
	fwrite($fh,$site."\t".$cookie."\n"); 
	fclose($fh); 

}
?>